package com.zzty.txj.controller;


import com.zzty.txj.entity.Clazz;
import com.zzty.txj.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/register")
public class RegisterController {
    @Autowired
    ClazzService clazzService;
    @RequestMapping(value = "getClazz")
    public List<Clazz>getClazz(){
    List<Clazz>clazzes = clazzService.getClazz();
        System.out.println(clazzes);
    return clazzes;
    }
}
